import http from "@/utils/http";
import { type UserLoginRequest } from "./userLoginRequest";

interface ResponseEntity<T> {
  code: number;
  message: string;
  data: T;
}


export const userLogin = {
  login: (data: UserLoginRequest): Promise<ResponseEntity<any>> => {
    return http.post("/api/user/login", data);
  },
}
